{{ template "layout.html" . }}
{{define "title"}}
    <title>添加域名类型</title>
{{end}}
{{define "main_body"}}
<div class="main_body" id="main_body">
        <div class="breadcrub">
            当前位置：域名管理>添加项目
        </div>
        <div class="pannel">
            <table class="common_table">
                <tr>
                    <th width="10%">id</th>
                    <th width="50%">项目名称</th>
                    <th width="30%">所属用户</th>
                    <th width="20%">管理操作</th>
                </tr>
                {{range .types}}
                <tr>
                    <td>{{.Id}}</td>
                    <td>{{.TypeName}}</td>
                    <td>{{.User.Id}}</td>
                    <td><a href="/Domain/DeleteDomainType?id={{.Id}}" class="edit">删除</a></td>
                </tr>
                {{end}}

                <tr>
                    <td colspan="3">
                    <form method="POST" action="/Domain/AddDomainType" >
                        <input type="text" class="type_txt" placeholder="添加项目" name="typeName">
                        <input type="submit" class="addtype" value="增加项目">
                    </form>
                    </td>
                </tr>
            </table>
        </div>
    </div>
{{end}}

